<?php
  class Model_home extends CI_Model{
	  protected $_destina = "tbl_destination";
	  protected $_holiday = "tbl_type";
	  protected $_tours = "tbl_tours";
      protected $_cruise = "tbl_cruises";
	  protected $_blog = "tbl_blogs";
	  protected $_contact = "tbl_contact";
	  public function __construct(){
		  parent::__construct();
		  $this->load->database();
	  }
	  public function blog($id){
		  $this->db->where("destina_id",$id);
		  $this->db->order_by("cateblog_order","ASC");
		  return $this->db->get($this->_cateblog)->result_array();
	  }
	  public function insertcontact($data){
		  $this->db->insert($this->_contact,$data);
	  }
  }